<include file="Public:header" />
<include file="Public:leftside" />
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs"> 
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i> <a href="/">首页</a> </li>
			<li class="active">基础设置</li>
		</ul>
	</div>
	<section class="scrollable wrapper">
	<div class="row panel-body" style="margin-top: 10px;">
		<a href="{:U('Platform/webinfo')}" class="btn btn-sm btn-default">网站设置</a>
		<a href="{:U('Platform/webpay')}" class="btn btn-sm btn-primary">支付配置</a>
		<a href="{:U('Platform/weblogin')}" class="btn btn-sm btn-default">第三方登录</a>
		<a href="{:U('Platform/webphone')}" class="btn btn-sm btn-default">短信配置</a>
			<a href="{:U('Platform/webqita')}" class="btn btn-sm btn-default">其他设置</a>
		
	</div>
	<section class="panel-default m-b-sm">
		<div class="alert alert-info">
			<p>
           	 <i class="fa fa-hand-o-right m-r-xs"></i><strong>操作提示</strong>
            </p>
			<p class="alert-p m-l-xl"><i class="fa fa-caret-right m-r-xs"></i>微信,支付宝支付配置。</p>
		</div>
	</section>
	
	<section class="panel panel-default">
	<header class="panel-heading text-right bg-light">
		<ul class="nav nav-tabs pull-left">
			<li class="active"><a href="#wpay" data-toggle="tab">微信支付</a></li>
			<li class=""><a href="#alipay" data-toggle="tab">支付宝支付</a></li>
		    <li class=""><a href="#otherpay" data-toggle="tab">支付宝转账</a></li>
	
		</ul>
		<span class="hidden-sm">支付设置</span>
	</header>
	<div class="panel-body">
		<div class="tab-content">
			<div class="tab-pane fade active in" id="wpay">
					<div class="panel-body">

						<form class="form form-horizontal" action="{:U('Platform/webSave')}" method="post" role="form">
						 <input type="hidden" name="option_name" value="wx_pay" />
							<div class="form-group">
								<label class="col-sm-2 control-label">是否启用</label>
								<div class="col-md-4">
									<label class="switch">
										<input type="checkbox" name="wpay_is_use" <?php if($w_config['wpay_is_use']){ ?>checked="" <?php } ?> >
										<span></span>
									</label>
								</div>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">应用ID[AppID]</label>
								<div class="col-md-4">
									<input type="text" class="form-control" id="APP_KEY" name="APP_KEY" required="" value="{$w_config.APP_KEY}" aria-required="true">
								</div>
								<label class="col-md-6  error" for="APP_KEY"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">JSAPI接口[openid]</label>
								<div class="col-md-4">
									<input type="text" class="form-control" id="APP_SECRET" name="APP_SECRET" required="" value="{$w_config.APP_SECRET}" aria-required="true">
								</div>
								<label class="col-md-6 error" for="APP_SECRET"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-lg-2 control-label">商户支付密钥[KEY]</label>
								<div class="col-md-4">
									<input type="text" class="form-control" id="KEY" name="KEY" required="" value="{$w_config.KEY}" aria-required="true">
								</div>
								<label class="col-md-6 error" for="KEY"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-lg-2 control-label">微信支付商户号[MCHID]</label>
								<div class="col-md-4">
									<input type="text" class="form-control" id="MCHID" name="MCHID" required="" value="{$w_config.MCHID}" aria-required="true">
								</div>
								<label class="col-md-6 error" for="MCHID"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<div class="col-sm-4 col-sm-offset-2">
									<button class="btn btn-info formSubmit" id="form" type="button"><i class="icon-ok bigger-110"></i>提交</button>
									&nbsp; &nbsp; &nbsp;
									<button class="btn" type="button" onclick="history.back(-1);"><i class="icon-undo bigger-110"></i>返回</button>
								</div>
							</div>
						</form>
					</div>
			</div>
			<div class="tab-pane fade" id="alipay">
					<div class="panel-body">
						<form class="form1 form-horizontal" action="{:U('Platform/webSave')}" method="post" novalidate="novalidate" role="form">
						 <input type="hidden" name="option_name" value="ali_pay" />
							<div class="form-group">
								<label class="col-sm-2 control-label">是否启用</label>
								<div class="col-md-4">
									<label class="switch">
										<input type="checkbox" name="alipay_is_use"  <?php if($a_config['alipay_is_use']){ ?>checked="" <?php } ?>>
										<span></span>
									</label>
								</div>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">应用ID</label>
								<div class="col-md-4">
									<input type="text" class="form-control" name="ali_appid" required="" value="{$a_config.ali_appid}" aria-required="true">
								</div>
								<label class="col-md-6 error" for="ali_partnerid"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">应用公钥</label>
								<div class="col-md-4">
									<textarea name="alipay_public_key" rows="6" cols="70">{$a_config.alipay_public_key}</textarea>
								</div>
								<label class="col-md-6 error" for="alipay_public_key"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-lg-2 control-label">应用私钥</label>
								<div class="col-md-4">
									<textarea name="merchant_private_key" rows="6" cols="70">{$a_config.merchant_private_key}</textarea>
								</div>
								<label class="col-md-6 error" for="ali_key"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<div class="col-sm-4 col-sm-offset-2">
									<button class="btn btn-info formSubmit" id="form1" type="button"><i class="icon-ok bigger-110"></i>提交</button>
									&nbsp; &nbsp; &nbsp;
									<button class="btn" type="button" onclick="history.back(-1);"><i class="icon-undo bigger-110"></i>返回</button>
								</div>
							</div>
						</form>
					</div>
			</div>

			<div class="tab-pane fade" id="otherpay">
				<div class="panel-body">
						<form class="form2 form-horizontal" action="{:U('Platform/webSave')}" method="post" novalidate="novalidate" role="form">
						 <input type="hidden" name="option_name" value="z_ali_pay" />
					
							<div class="form-group">
								<label class="col-sm-2 control-label">应用ID</label>
								<div class="col-md-4">
								
									<input type="text" class="form-control" name="z_ali_appid" required="" value="{$z_config.z_ali_appid}" aria-required="true">
								</div>
								<label class="col-md-6 error" for="ali_partnerid"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">应用公钥</label>
								<div class="col-md-4">
									<textarea name="z_alipay_public_key" rows="6" cols="70">{$z_config.z_alipay_public_key}</textarea>
								</div>
								<label class="col-md-6 error" for="alipay_public_key"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<label class="col-lg-2 control-label">应用私钥</label>
								<div class="col-md-4">
									<textarea name="z_merchant_private_key" rows="6" cols="70">{$z_config.z_merchant_private_key}</textarea>
									
								</div>
								<label class="col-md-6 error" for="ali_key"></label>
							</div>
							<div class="line line-dashed line-lg pull-in"></div>
							<div class="form-group">
								<div class="col-sm-4 col-sm-offset-2">
									<button class="btn btn-info formSubmit" id="form2" type="button"><i class="icon-ok bigger-110"></i>提交</button>
									&nbsp; &nbsp; &nbsp;
									<button class="btn" type="button" onclick="history.back(-1);"><i class="icon-undo bigger-110"></i>返回</button>
								</div>
							</div>
						</form>
					</div>
			</div>
			
		</div>
	</div>
</section>
</section>
<include file="Public:footer" />